module Orator
  module Generators
    class ConfigGenerator < Rails::Generators::Base

      source_root File.expand_path('../../templates', __FILE__)

      def copy_configuration
        template "config.yml", "config/orator_config.yml"
        empty_directory "config/orator"
        template "routes.rb", "config/orator/routes.rb"
        directory "orators", "app/orators"
      end

    end
  end
end
